def sort(file, listnumber):
    data = ''.join(sorted(open(file), key=lambda s: s.split()[listnumber], reverse=True))
    print(data)
    return data

sort('11_result.txt', 0)
# print(''.join(sorted(open('11_result.txt'), key=lambda s: s.split()[1], reverse=True)))
